package com.wky.org.service;

import com.wky.basic.service.BaseService;
import com.wky.org.pojo.Shop;
import com.wky.org.pojo.ShopAuditLog;

import java.util.List;
import java.util.Map;


public interface ShopService extends BaseService<Shop> {

    /**
     * 店铺注册
     * @param shop
     */
    void shopRegister(Shop shop);

    /**
     * 店铺审核通过
     * @param shopAuditLog
     */
    void shopAuditOk(ShopAuditLog shopAuditLog);

    /**
     * 店铺审核未通过
     * @param shopAuditLog
     */
    void shopAuditNo(ShopAuditLog shopAuditLog);

    /**
     * 查询所有店铺
     */
    List<Shop> findAll();

    /**
     * 根据id查询店铺
     */
    Shop findById(Long id);

    /**
     * 图表数据
     * @return
     */
    Map<String,List<Integer>> chart();
}
